#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author： 胡浩浩
# datetime： 2021/12/28 12:30 
# ide： PyCharm
from typing import List, Optional
from pydantic import BaseModel


class CaseBase(BaseModel):
    remark: Optional[str] = None


class CaseCreate(CaseBase):
    pass


class Case(CaseBase):
    id = int
    name: str
    method: str
    url: str
    params: str
    deleted = bool
    create_time: str
    create_user_id: int
    create_user_name: str
    update_time: str
    update_user_id: int
    update_user_name: str
    assert_content: str
    test_scene: str
    priority: str
    headers: str
    swagger_address: str
    tester: str
    test_result: str
    class Config:
        orm_mode = True
